	<?php $segment = $this->uri->segment(4);?>
<div class="content_module text_red">MENU</div>
<div class="left_content">
	<?php if(!empty($module)):?>
	<div class="sub_menu_active">
		<div class="bg_active left"></div>
		<span class="pl11 left"><b><?=strtoupper($module)?></b></span>
		<div class="clearAll"></div>
	</div>
	<?php 
	endif;
	if(!empty($subcat)):
		foreach($subcat as $value):
			if($value['id'] == $segment)
			{
				echo "<div class='sub_menu_active'>";
				echo "<div class='bg_active left'></div>";
				echo "<span class='pl11 left'><a href='".base_url().'index.php/admin/'.$module.'/getSubCat/'.$value['id']."'>{$value['name']}</a></span>";
				echo "<div class='clearAll'></div>";
				echo "</div>";
			}else{
				echo "<div class='sub_menu'>";
				echo "<span class='pl5'><a href='".base_url().'index.php/admin/'.$module.'/getSubCat/'.$value['id']."'>{$value['name']}</a></span>";
				echo "</div>";
			}
		endforeach;
	endif;
	?>
</div>